﻿#pragma once
#pragma execution_character_set("UTF-8")
#include "AttributeNode.h"


class TreeNode//树节点
{
public:
    /*构造*/
    TreeNode(){}

    /*析构*/
    virtual~TreeNode(){}

    /*初始化*/
    virtual void InitAttribute( AttributeOfTreeNode* pAttri ) = 0;

    /*获取osg::Node节点*/
    virtual osg::ref_ptr<osg::Node> GetValidNode( void ) = 0;

    /*获取osg::Group节点*/
    virtual osg::ref_ptr<osg::Group> GetValidGroup( void ) = 0;

    /*设置属性*/
    virtual void SetAttribute(  int NumofAttr,... ) = 0;

    /*更新属性*/
    virtual void UpdateAttribute( void ) = 0;

    /*属性*/
    AttributeOfTreeNode* pAttribute;
};
